﻿using HPIT.RentHouse.Common;
using RentHouse.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RentHouse.IService
{
    public interface IPermissionService: IServiceSupport
    {
        List<PermissionDTO> GetList();
        PermissionDTO Get(long id);
        List<PermissionDTO> GetPagedList(int start, int length, string name, ref int count);
        AjaxResult Add(PermissionDTO dto);
        AjaxResult Edit(PermissionDTO dto);
        PermissionDTO  GetPermission(long Id);
        AjaxResult Delete(long Id);
        AjaxResult DeleteBatch(List<long> ids);

        /// <summary>
        /// 获取用户权限
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        List<PermissionDTO> GetListByUser(long userId);
    }
}
